﻿namespace WikiApp.Lib;

[Serializable]
public class PageItemList
{
    public PageItem[] List { get; set; } = [];
    public PageTree[] Tree { get; set; } = [];
}

[Serializable]
public class PageTree
{
    public int Id { get; set; }
    public bool IsFolder { get; set; }
    public string Path { get; set; } = "";
    public string Title { get; set; } = "";
    public int Parent { get; set; }
}

[Serializable]
public class PageItem
{
    public string Id { get; set; } = "";
    public string Title { get; set; } = "";
    public string Path { get; set; } = "";
    public string ContentType { get; set; } = "";
    public string Description { get; set; } = "";
}

[Serializable]
public class PageSingleData
{
    public PageSingleList Pages { get; set; } = new();
}

[Serializable]
public class PageSingleList
{
    public PageSingle Single { get; set; } = new();
}

[Serializable]
public class PageSingle
{
    public string Content { get; set; } = "";
}

[Serializable]
public class InitModel
{
    public PageItemList Pages { get; set; } = new();
}